﻿<!-------------------------------------------------

	Filename:	Settings.html
 	Authors:	Tolga Hosgor, Cristian Patrasciuc
 	Emails:		fasdfasdas@gmail.com, cristian.patrasciuc@gmail.com
	
 Copyright © 2010, 2011 Tolga Hosgor, Cristian Patrasciuc
 
 This file is part of FeedFlow.

 FeedFlow is free project: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 FeedFlow is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with FeedFlow.  If not, see <http://www.gnu.org/licenses/>.
 
--------------------------------------------------->

<HTML id='SettingsWin'>
	<HEAD>
		<LINK href="styles/settings.css" rel="stylesheet" type="text/css">
		<SCRIPT language="javascript" src="scripts/settings.js"></SCRIPT>
	</HEAD>

	<BODY onload="loadSettings();">
		<object id="dlgH" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></object>
	
		<a href="javascript:void(0);" onclick="showTable(feedsTable);">Feeds</a> |
		<a href="javascript:void(0);" onclick="showTable(optionsTable);">Options</a> |
		<a href="javascript:void(0);" onclick="showTable(aboutTable);">About</a><span> |
		<a href="javascript:void(0);" onclick="showTable(errorLog);">Error Log</a><br/>
		<div style="font-size:10px;float:right;margin:5px 82px 5px 0;"><a href="http://code.google.com/p/feedflow/issues/list">Report bug/idea</a> |
		<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6F9JKFFWJ9L9N">Donate</a>
		</div>
		<div style="height:20px;"></div>

		<div style="overflow:auto;width:290px;height:280px;">

		<table id="feedsTable">	
		<tr><td><label for="feeds">Feeds:</label></td>
		<td><SELECT name="feeds" id="feeds"/ onchange="feedsChange();"/>
		</td></tr>
		<tr><td></td><td><input type="button" id="deleteFeed" value="Delete Feed" style="width:71px;" onclick="deleteExistingFeed();"><input type="button" id="moveFeedUpButton" value="▲"/ style="width:25px;" onclick="moveFeed(0);" ondblclick="moveFeed(0);"><input type="button" id="moveFeedDownButton" value="▼"/ style="width:25px;" onclick="moveFeed(1);" ondblclick="moveFeed(1);"><input type="button" id="eEditButton" value="Extended Opt." onclick="eEditCurrentFeed();" style="width:80px;"/></td></tr>
		<tr><td><label for="feedName">Feed name:</label></td><td><input type="text" name="feedName" id="feedName" length="20" onkeyup="editCheck();"/></td></tr>
		<tr><td><label for="feedURL">Feed URL:</label></td><td><input type="text" name="feedURL" id="feedURL" onkeyup="editCheck();"/></td></tr>
	    <tr><td></td><td><input type="button" name="addFeed" id="addFeed" value="Add Feed" style="width:auto;" onclick="addNewFeed( feedName.value, feedURL.value );"><input type="button" name="editFeed" id="editFeed" value="Apply Changes" style="width:120px;" onclick="editExistingFeed();" disabled="true"/></td></tr><tr><td><span id="errorMessage"></span></td></tr>
		<tr><td colspan="2" style="height:15px;"></td></tr>
		<tr><td></td><td><span class="iSave"><input type="button" id="importFeedsFromIE" name="importFeeds" id="importFeeds" value="Import Feeds from IE" style="width:auto;" onclick="importFeedsFromIE7();"/></span></td></tr>
		<tr><td></td><td>&nbsp;</td></tr>
		<tr><td></td><td><input type="button" id="saveSettingsToFile" value="Save Settings to a File" style="width:90%;" onclick="saveSettingsToFile();"/></td></tr>
		<tr><td></td><td><input type="button" id="loadSettingsFromFile" value="Load Settings from a File" style="width:90%;" onclick="readSettingsFromFile();"/></td></tr>
		</table>

		<table id="optionsTable" style="display:none;">
		<tr><div id="preview"><img id="previewImage" src="themes/brown/preview.png"></div></tr>
		<tr><td><label for="feedTheme">Theme:</label></td>
		<td><SELECT name="feedTheme" id="feedTheme" onchange="updatePreview();">
				<OPTION value="default" SELECTED>Default</OPTION>
				<OPTION value="brown">Brown</OPTION>
				<OPTION value="red">Red</OPTION>
				<OPTION value="vista">Vista</OPTION>
		</SELECT></td></tr>
		<tr><td>Font:</td><td><select id="feedFontF" style="width:80%;"></select><input type="text" id="feedFontS" maxlength="2" style="width:9%" onkeypress="return onlyNumbers();" value="11"/> px</td></tr>
		<tr><td colspan="2"><input type="checkbox" id="autoScrollCheckBox" style="width:auto;"/>Auto scroll through feeds</td></tr>
		<tr><td>Autoscroll<br/>Interval:</td><td><input type="text" id="autoScrollInterval" value="15000" onkeypress="return onlyNumbers();" maxlength="6" style="width:90%;"/> ms</td></tr>
		<tr><td colspan="2"><select id="loopType" style="width:100%;"><option>Loop both feeds and pages during autoscroll</option><option>Only loop between pages during autoscroll</option><option>Only loop between feeds during autoscroll</option></select></td></tr>
		<tr><td colspan="2"><input type="checkbox" id="notStopAutoScroll" style="width:auto;"/>Do not stop autoscroll on mouseover</td></tr>
		<tr><td colspan="2">Hide the feeds when: <select id="hideFeeds" style="width:95px;"><option selected>Never</option><option>I click on them</option><option>I click "Read More"</option></select><input type="button" value="Flush cache" onclick="flushReadCache();this.disabled=true;" style="width:65px;"/></td></tr>
		<tr><td colspan="2">Reset feed hiding cache when it reaches <input type="text" id="hideFeedsMax" value="1000" style="width:32px;" maxlength="4"  onkeypress="return onlyNumbers();"/> feeds</td></tr>
		<tr><td colspan="2"><select id="dispPubDateOnMW" style="width:70%;"><option>Display nothing about feed pub. date</option><option>Display the date feed was published</option><option>Display time passed since feed pub.</option></select> on main window</td></tr>
		<tr><td>Feed fetching<br/>Interval:</td><td><input type="text" id="feedFetchRefresh" value="15" maxlength="6" onkeypress="return onlyNumbers();" style="width:76%;"/><select id="feedFetchRefreshC" style="width:20%;"><option value="1">ms</option><option value="1000">sec</option><option value="60000" selected>min</option><option value="3600000">h</option></select></td></tr>
		<tr><td>Feed fetching<br/>timeout:</td><td><input type="text" id="feedLoadTimeout" value="6500" onkeypress="return onlyNumbers();" maxlength="5"/></td></tr>
		<tr><td>Global:feed per page<br/>coefficient:</td><td><input type="text" id="feedPPGCoefficient" value="1" onkeypress="return onlyNumbers(null,46);" maxlength="5"/> <a title="Adjust this to increase and decrease feed number per page, i.e. 0.5 is simply half times of normal count. May help if you use custom font settings.">?</a></td></tr>
		<tr><td colspan="2"><input id="GmaxAgeToViewMode" type="checkbox" style="width:auto;"/> Hide items older than <input type="text" id="GmaxAgeToView" maxlength="3" style="width:25px;" onchange="return onlyNumbers();"/><select id="GmaxAgeToViewC" style="width:35px;"><option value="86400000">d</option><option value="3600000">h</option><option value="60000">m</option><option value="1000">s</option></select><a title="Leave zero for no effect.">?</a></td></tr>
		<tr><td colspan="2"><input type="checkbox" id="GwrapTitle" style="width:auto;"/>Global:wrap titles</td></tr>
		<tr><td colspan="2"><input type="checkbox" id="GwrapDescription" style="width:auto;"/>Global:wrap descriptions</td></tr>
		<tr><td colspan="2"><input type="checkbox" id="GhideDescription" style="width:auto;"/>Global:hide descriptions</td></tr>
		<tr style="display:none;"><td></td><td><input type="checkbox" id="disableUpdate" style="width:auto;"/>Disable update systems <a title="You will not be notified of the new versions and there won't be any auto updates. Not recommended.">?</a></td></tr>
		</table>

		<table id="eEditTable" style="display:none;">
		<tr><td colspan="2">Altering:<br><b id="eEditTableN"></b></td></tr>
		<tr><td colspan="2"><input type="button" value="Apply Changes" onclick="eEditApplyChanges();" style="width:65%;"/><input type="button" value="Cancel" onclick="showTable(feedsTable);" style="width:35%;"/></td></tr>
		<tr><td colspan="2"><b><u>Filtering:</u></b>  <a title="RegExp form is acceptable for first two.">?</a>
		<tr><td>by Title:</td><td><input type="text" id="eEditTableTitle"/></td></tr>
		<tr><td>by Description:</td><td><input type="text" id="eEditTableContent"/></td></tr>
		<tr><td colspan="2"><select id="maxAgeToViewMode" style="width:auto;"><option>No effect</option><option>Active</option><option>Inactive</option></select> Hide items older than <input type="text" id="maxAgeToView" maxlength="3" style="width:25px;" onchange="return onlyNumbers();"/><select id="maxAgeToViewC" style="width:35px;"><option value="86400000">d</option><option value="3600000">h</option><option value="60000">m</option><option value="1000">s</option></select><a title="Leave zero for no effect.">?</a></td></tr>
		<tr><td colspan="2">&nbsp;</td></tr>
		<tr><td>HTML tags to exclude<a title="It will affect the description sections of the nodes of this feed in main window, i.e. links will be clickable.">?</a>:</td><td><input type="text" id="eEditTableDisableHTML"/><a title="i.e. type 'a' without brackets to exclude the links. Use comma to seperate multiple.">?</a></td></tr>
		<tr><td>Feed per page<br/>coefficient:</td><td><input type="text" id="feedPPCoefficient" value="1.0" onkeypress="return onlyNumbers(null,46);" maxlength="5"/><a title="Adjust this to increase and decrease feed number per page, i.e. 0.5 is simply half times of normal count. May help if you use custom font settings.">?</a></td></tr>
		<tr><td>Wrap Title:</td><td><select id="wrapTitle"/><option>No effect</option><option>Yes</option><option>No</option></select></td></tr>
		<tr><td>Wrap Description:</td><td><select id="wrapDescription"/><option>No effect</option><option>Yes</option><option>No</option></select></td></tr>
		<tr><td>Hide description:</td><td><select id="hideDescription"/><option>No effect</option><option>Yes</option><option>No</option></select></td></tr>
		</table>

		<table id="aboutTable" style="display:none;">
		<tr><td colspan="2"><a href="http://code.google.com/p/feedflow/">FeedFlow Gadget, v<script>document.write(System.Gadget.version);</script></a></td></tr>
		<tr><td colspan="2">Web Address: <a href="http://code.google.com/p/feedflow/">http://code.google.com/p/feedflow/</a></td></tr>
        <tr><td><STRONG>Authors:</STRONG></td><td>Tolga Hosgor, Cristian Patrasciuc</td></tr>
		<tr><td><STRONG>Emails:</STRONG></td><td><a href="mailto:fasdfasdas@gmail.com">fasdfasdas@gmail.com</a><br><a href="mailto:cristian.patrasciuc@gmail.com">cristian.patrasciuc@gmail.com</a></td></tr>
		<tr><td>&nbsp;</td></tr><tr><td colspan="2">
		<textarea cols="32" rows="9">
Copyright &#169; 2010, 2011 Tolga Hosgor, Cristian Patrasciuc

FeedFlow is free project: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

FeedFlow is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with FeedFlow. If not, see <http://www.gnu.org/licenses/>.
		</textarea>
		</td></tr>
		<tr><td colspan="2"><input type="checkbox" id="NOUpdate" style="width:auto;"/>Disable auto-update and update notifications</td></tr>
		</table>
		
		<table id="errorLog" style='display:none;'><tr><td>
		<textarea cols="32" rows="15" id='errorLogArea' readonly='readonly'></textarea>
		</td></tr><tr><td><input type='button' onclick='flushErrorLog();' value='Flush Log' style='width:auto;'/></table>
		
		</div>
	</BODY>
</HTML>
